package com.xoa.dao.crm;

import com.xoa.model.crm.Product;
import com.xoa.model.crm.ProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProductMapper {

    List<Product> selectAll();

    int deleteByPrimaryKey(Integer productId);

    int countByExample(ProductExample example);

    int deleteByExample(ProductExample example);

    int insert(Product product);

    int insertSelective(Product product);

    Product selectByPrimaryKey(Integer productId);

    int updateByPrimaryKeySelective(Product product);

    int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByExample(@Param("record") Product record, @Param("example") ProductExample example);

    int updateByPrimaryKey(Product product);

    List<Product> selectByExample(ProductExample example);

    List<Product> selectByCondition(Map map);

    int importProduct(List<Product> list);

    List<Product> selectProduct();
}